Skip to content

Conversation

@Artur-
Copy link
Member

@Artur- Artur- commented Jan 30, 2026

Fixes #22646

JacksonUtils.writeValue() now explicitly handles null values by returning a proper NullNode, matching the behavior of similar methods like JacksonSerializer.toJson() and JacksonCodec.encodeWithoutTypeInfo(). This ensures ReactAdapterComponent.setState(name, null) sends an actual JSON null to the client instead of the string "null".

Fixes #22646

JacksonUtils.writeValue() now explicitly handles null values by
returning a proper NullNode, matching the behavior of similar methods
like JacksonSerializer.toJson() and JacksonCodec.encodeWithoutTypeInfo().
This ensures ReactAdapterComponent.setState(name, null) sends an actual
JSON null to the client instead of the string "null".
@Artur- Artur- marked this pull request as ready for review January 30, 2026 19:06
@github-actions
Copy link

github-actions bot commented Jan 30, 2026

Test Results

 1 349 files  ±0  1 349 suites  ±0   1h 18m 13s ⏱️ + 1m 14s
 9 541 tests +3  9 473 ✅ +3  68 💤 ±0  0 ❌ ±0 
10 009 runs  +9  9 933 ✅ +9  76 💤 ±0  0 ❌ ±0 

Results for commit a5ba68d. ± Comparison against base commit 2397dc3.

♻️ This comment has been updated with latest results.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2026

@caalador caalador merged commit 6597229 into main Feb 2, 2026
31 checks passed
@caalador caalador deleted the fix-issue-22646 branch February 2, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReactAdapterElement/ReactAdapterComponent: set string state to null not working probably

3 participants